Skip to content

fix(auth): handle malformed send sms JSON - #197

Merged
ralyodio merged 1 commit into
profullstack:masterfrom
aiirvizionz:clientkit/send-sms-invalid-json
Jul 30, 2026
Merged

fix(auth): handle malformed send sms JSON#197
ralyodio merged 1 commit into
profullstack:masterfrom
aiirvizionz:clientkit/send-sms-invalid-json

Conversation

@aiirvizionz

Copy link
Copy Markdown
Contributor

Summary

  • return 400 for malformed send-sms JSON instead of falling through to the generic 500 handler
  • stop invalid bodies before per-phone/global SMS cost controls and Supabase work
  • add focused regression coverage for malformed JSON handling

Test

  • node node_modules\vitest\vitest.mjs run --config %TEMP%\qryptchat-vitest-minimal.config.mjs "src/app/api/auth/send-sms/route.test.js"
  • git diff --check

uGig billing

  • Expected invoice: 0.50 USD if accepted/merged
  • Counted as revenue now: no, pending review/payment

@ralyodio
ralyodio merged commit 2e22f73 into profullstack:master Jul 30, 2026
8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants